/**
 * @(#)MonitorSimulatorNumInfo.java 2017年2月16日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.domian.monitor;


import org.jsbd.boss.annotation.ExportExcelAnnotation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 模拟器数量监控
 * @author <a href="mailto:zhouchao@xingbook.com" >周超</a>
 * @version 1.0.0
 */
public class MonitorSimulatorNumInfo extends MonitorColor{
	public static final Logger LOGGER = LoggerFactory.getLogger(MonitorSimulatorNumInfo.class);

	@ExportExcelAnnotation(index = 1)
	private String apkName;
	
	@ExportExcelAnnotation(index = 2)
	private Integer needSimulators;
	
	@ExportExcelAnnotation(index = 3)
	private String newTaskNum;
		
	@ExportExcelAnnotation(index = 4)
	private String retentTaskNum;
		
	
	private Integer newTaskTime;
	
	private Integer retentTaskTime;
	
	private String channelName;
	
	@ExportExcelAnnotation(index = 8)
	private String errorMsg;
	
//	@ExportExcelAnnotation(index = 9)
	private String mark;
	
	/**
	 * 新增任务总量
	 */
	private int newTaskTotal;
	/**
	 * 计划新增执行量
	 */
	private int planNewTaskTotal;
	/**
	 * 实际新增执行量
	 */
	private int handlerNewTask;
	
	/**
	 * 留存任务总量
	 */
	private int retentTaskTotal;
	/**
	 * 计划留存执行量
	 */
	private int planRetentTaskTotal;
	/**
	 * 实际留存执行量
	 */
	private int handlerRetentTask;
	/**
	 * 客户端上传的已执行量
	 */
	
	private int realexeNum;
	/**
	 * 客户端上传的有手机量
	 */
	
	private int mobileNum;
	@ExportExcelAnnotation(index = 7)
	private Double execRate;
	
	/**
	 * 2次查询之间的执行量:新增执行量|留存执行量
	 */
	@ExportExcelAnnotation(index = 6)
    private String handlerNumStr;	
	
	private int retentRealexeNum;
	@ExportExcelAnnotation(index = 5)
	private String realExeNumStr;
	
	private String sysVer;

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	public String getApkName() {
		return apkName;
	}

	public void setApkName(String apkName) {
		this.apkName = apkName;
	}

	public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	public String getNewTaskNum() {
		return newTaskNum;
	}

	public void setNewTaskNum(String newTaskNum) {
		this.newTaskNum = newTaskNum;
		String[] newTaskNumArr=newTaskNum.split("\\|");
		if(newTaskNumArr.length<3){
			return;
		}
		
		this.newTaskTotal=Integer.valueOf(newTaskNumArr[0]);
		this.planNewTaskTotal=Integer.valueOf(newTaskNumArr[1]);
		this.handlerNewTask=Integer.valueOf(newTaskNumArr[2]);
	}

	public String getRetentTaskNum() {
		return retentTaskNum;
	}

	public void setRetentTaskNum(String retentTaskNum) {
		this.retentTaskNum = retentTaskNum;
		
		String[] retentTaskNumArr=retentTaskNum.split("\\|");
		if(retentTaskNumArr.length<3){
			return;
		}
		
		this.retentTaskTotal=Integer.valueOf(retentTaskNumArr[0]);
		this.planRetentTaskTotal=Integer.valueOf(retentTaskNumArr[1]);
		this.handlerRetentTask=Integer.valueOf(retentTaskNumArr[2]);
	}

	public Integer getNewTaskTime() {
		return newTaskTime;
	}

	public void setNewTaskTime(Integer newTaskTime) {
		if(newTaskTime==null){
			newTaskTime=0;
		}
		this.newTaskTime = newTaskTime;
	}

	public Integer getRetentTaskTime() {
		return retentTaskTime;
	}

	public void setRetentTaskTime(Integer retentTaskTime) {
		if(retentTaskTime==null){
			retentTaskTime=0;
		}
		this.retentTaskTime = retentTaskTime;
	}

	public Integer getNeedSimulators() {
		return needSimulators;
	}

	public void setNeedSimulators(Integer needSimulators) {
		this.needSimulators = needSimulators;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public int getNewTaskTotal() {
		return newTaskTotal;
	}

	public void setNewTaskTotal(int newTaskTotal) {
		this.newTaskTotal = newTaskTotal;
	}

	public int getPlanNewTaskTotal() {
		return planNewTaskTotal;
	}

	public void setPlanNewTaskTotal(int planNewTaskTotal) {
		this.planNewTaskTotal = planNewTaskTotal;
	}
	
	public int getHandlerNewTask() {
		return handlerNewTask;
	}

	public void setHandlerNewTask(int handlerNewTask) {
		this.handlerNewTask = handlerNewTask;
	}

	public int getRetentTaskTotal() {
		return retentTaskTotal;
	}

	public void setRetentTaskTotal(int retentTaskTotal) {
		this.retentTaskTotal = retentTaskTotal;
	}

	public int getPlanRetentTaskTotal() {
		return planRetentTaskTotal;
	}

	public void setPlanRetentTaskTotal(int planRetentTaskTotal) {
		this.planRetentTaskTotal = planRetentTaskTotal;
	}

	public int getHandlerRetentTask() {
		return handlerRetentTask;
	}

	public void setHandlerRetentTask(int handlerRetentTask) {
		this.handlerRetentTask = handlerRetentTask;
	}

	public String getSysVer() {
		return sysVer;
	}

	public void setSysVer(String sysVer) {
		this.sysVer = sysVer;
	}

	public int getRealexeNum() {
		return realexeNum;
	}

	public void setRealexeNum(int realexeNum) {
		this.realexeNum = realexeNum;
	}

	public int getMobileNum() {
		return mobileNum;
	}

	public void setMobileNum(int mobileNum) {
		this.mobileNum = mobileNum;
	}

	
	public void setExecRate(Double execRate) {
		this.execRate = execRate;
	}

	public Double getExecRate() {
		return this.execRate;
	}

	public String getHandlerNumStr() {
		return handlerNumStr;
	}

	public void setHandlerNumStr(String handlerNumStr) {
		this.handlerNumStr = handlerNumStr;
	}

	public int getRetentRealexeNum() {
		return retentRealexeNum;
	}

	public void setRetentRealexeNum(int retentRealexeNum) {
		this.retentRealexeNum = retentRealexeNum;
	}

	public String getRealExeNumStr() {
		return realExeNumStr;
	}

	public void setRealExeNumStr(String realExeNumStr) {
		this.realExeNumStr = realExeNumStr;
	}
	
}
